package com.poetry.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.poetry.domain.dto.PoemDTO;
import com.poetry.domain.po.Author;
import com.poetry.domain.po.Poem;
import com.poetry.exception.BasePage;
import com.poetry.exception.R;

import java.util.List;

public interface IPoemService extends IService<Poem> {
    R<List<Poem>> searchPoemPage(BasePage basePage);

    R<Poem> queryById(Integer id);

    R<String> likePoem(Integer id);

    R<List<Poem>> queryLikedPoem();

    R<Poem> setCategory(PoemDTO poemDTO);

    R<String> addPoem(Poem poem);

    R<Poem> updatePoem(Poem poem);

    R<String> deleteBatchByIds(List<Integer> ids);
}
